<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    function isUserOpenIdExist($openId){
       $result =  $this->where('open_id', $openId)->first();
       if($result){
           return true;
       }else{
           return false;
       }
    }
}
